package bluejack.operation;
import com.eclecticdesignstudio.motion.Actuate;

/**
 * ...
 * @author BlueJack
 */

class TweenOper extends Oper
{
	public var target:Dynamic;
	public var duration:Float;
	public var params:Dynamic;
	public var overwrite:Bool;

	public function new(target:Dynamic,duration:Float,params:Dynamic,overwrite:Bool = true) {
		this.target = target;
		this.duration = duration;
		this.params = params;
		this.overwrite = overwrite;
	}
	
	override public function execute():Void {
		Actuate.tween(target, duration, params,overwrite).onComplete(result);
		super.execute();
	}
	
}